<ion-toolbar>
    <ion-buttons left>
      <button ion-button icon-only (click)="dismiss()">
        <ion-icon name="arrow-back" ></ion-icon>
      </button>
    </ion-buttons>
    <ion-title class="center w92">快速注册</ion-title>
</ion-toolbar>


<ion-content padding-left="16px" padding-right="16px">
	<form [formGroup]="signupForm" (ngSubmit)="register(signupForm.value)">
		<ion-list>
			<!--<ion-item>-->
				<!--<ion-label item-left>-->
					<!--<ion-icon ios="ios-person" md="md-person"></ion-icon>-->
				<!--</ion-label>-->
				<!--<ion-input placeholder="学号" type="text" [formControl]="Sid"></ion-input>-->
	  		<!--</ion-item>-->
			<ion-item>
				<ion-label item-left>
					<ion-icon md="md-phone-portrait" ios="ios-phone-portrait-outline"></ion-icon>
				</ion-label>
				<ion-input placeholder="手机号" type="text" [formControl]="phone"></ion-input>
	  		</ion-item>
      <ion-item>
        <ion-label item-left>
          <ion-icon ios="ios-lock" md="md-lock"></ion-icon>
        </ion-label>
        <ion-input placeholder="密码" type="password" [formControl]="password"></ion-input>
      </ion-item>
      <!--<div *ngIf="password.hasError('required')" class="error-message">* 请输入密码</div>-->
      <!--<div *ngIf="(password.hasError('maxLength'))" class="error-message">* 密码长度最少为六位</div>-->
      <ion-item>
        <ion-label item-left>
          <ion-icon ios="ios-lock" md="md-lock"></ion-icon>
        </ion-label>
        <ion-input placeholder="确认密码" type="password" [formControl]="confirmPassword"></ion-input>
      </ion-item>
		</ion-list>
		<div padding-left="16px" padding-right="16px">
	    	<button ion-button color="dark" block [disabled]="!signupForm.valid">立即注册</button>
	  	</div>
	</form>


</ion-content>
